# 表示该类继承自object基类
class Bird(object):
    have_feather = True
    way_of_reproduction  = 'egg'

    # self表示当前类对象向，拥有该类的所有性质
    def move(self, dx, dy):
        position = [0,0]
        position[0] = position[0] + dx
        position[1] = position[1] + dy
        return position

# 表示该类继承自Bird类
class Chicken(Bird):
    way_of_move = 'walk'
    possible_in_KFC = True

class Oriole(Bird):
    way_of_move = 'fly'
    possible_in_KFC = False


if __name__ == "__main__":
    summer = Chicken()
    print(summer.have_feather)
    print(summer.move(5,6))